package org.hcyspartnoc.luoxin.pojo.po.chat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@TableName("chat_message")
public class ChatMessagePo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("session_id")
    private String sessionId;
    @TableField("message_content")
    private String messageContent;
    @TableField("message_type")
    private Integer messageType;
    @TableField("sender_id")
    private Integer senderId;
    @TableField("sender_type")
    private Integer senderType;
    @TableField("sender_nickname")
    private String senderNickname;
    @TableField("contact_id")
    private Integer contactId;
    @TableField("send_time")
    private LocalDateTime sendTime;
    @TableField("status")
    private Integer status;
    @TableField("is_like")
    private Integer isLike;

}